package com.geek.novel.entity

import io.realm.RealmObject
import io.realm.annotations.PrimaryKey
import io.realm.annotations.RealmClass
import java.util.*


/**
 * 书籍单独的爬虫源
 * @Author Hydra
 * @Date 2022/7/25 17:09
 */
@RealmClass
open class BookCrawler : RealmObject() {
	
	/**
     * id
     */
	@PrimaryKey
    open var id: Long? = null

	open var bookId: String? = ""

	/**书名*/
	open var bookName: String? = ""

	/**
	 * 爬虫来源的id
	 */
	open var crawlSourceId: String? = null

	/**
	 * 爬虫来源的书本id,因为是网络爬取,这个id很可能是字符串
	 */
	open var crawlBookId: String? = null

	/**
	 * 最后一章的id，用于展示
	 */
	open var lastIndexId: Long? = null

	/**
	 * 最后一章的名称，用于展示
	 */
	open var lastIndexName: String? = null

	/**
	 * 最后一次爬取时间，在书架发现有更新后删除
	 */
	open var lastCrawlerTime: Date? = null
	

}